<template>
  <ScalablePage>

  <!-- 沉淀池  cdc -->
  <div class="left">
    <h2><img src="../assets/psj/gy.png" style="width: 100%;" /></h2>
    <div class="psj-p psj-txt">
      <p>
        高效絮凝沉淀池处理规模20万m’/d，分成平行并联运行的3组，每组处理规模6.7万m’/d。每组反应池由混凝反应池、絮凝区、浓缩池组成，能有效去除原水中的浊度，尤其对低温低浊水处理效果较好。经过混凝+沉淀工艺，浊度可降至1NTU。
      </p>
      <p>
        沉淀池配有视频监控摄像头4个，24小时监控，另外有专人定期巡回检查。主要危险有害因素;触电、机械伤人、跌入池中溺水伤亡等。
      </p>
    </div>



    <h1><img src="../assets/psj/jcsj.png" style="margin-top: 6px;width:100%" /></h1>
    <h2><img src="../assets/psj/cdct2.png" style="margin-top: 6px" /></h2>
    <div class="psj-con">
      <div class="pjs-item">
        <img src="../assets/psj/icon.png" alt="" />
        <div>
          <div class="psj-t">{{ psj.j1 }} <span class="pjs-sub">m³/h</span></div>
          <p class="psj-p">1#管进水流量</p>
        </div>
      </div>
      <div class="pjs-item">
        <img src="../assets/psj/icon.png" alt="" />
        <div>
          <div class="psj-t">{{ psj.a }} <span class="pjs-sub">NTU</span></div>
          <p class="psj-p">A池浊度</p>
        </div>
      </div>
      <div class="pjs-item">
        <img src="../assets/psj/icon.png" alt="" />
        <div>
          <div class="psj-t">{{ psj.j3 }} <span class="pjs-sub">m³/h</span></div>
          <p class="psj-p">2#管进水流量</p>
        </div>
      </div>
     
      <div class="pjs-item">
        <img src="../assets/psj/icon.png" alt="" />
        <div>
          <div class="psj-t">{{ psj.b }} <span class="pjs-sub">NTU</span></div>
          <p class="psj-p">B池浊度</p>
        </div>
      </div>
      <div class="pjs-item">
        <img src="../assets/psj/icon.png" alt="" />
        <div>
          <div class="psj-t">{{ psj.j2 }} <span class="pjs-sub">m³/h</span></div>
          <p class="psj-p">3#管进水流量</p>
        </div>
      </div>
      <div class="pjs-item">
        <img src="../assets/psj/icon.png" alt="" />
        <div>
          <div class="psj-t">{{ psj.c }} <span class="pjs-sub">NTU</span></div>
          <p class="psj-p">C池浊度</p>
        </div>
      </div>
      <!--  -->
     
     
      <div class="pjs-item">
        <img src="../assets/psj/icon.png" alt="" />
        <div>
          <div class="psj-t">-<span class="pjs-sub">-</span></div>
          <p class="psj-p">A#池沉淀池泥位</p>
        </div>
      </div>
      <div class="pjs-item">
        <img src="../assets/psj/icon.png" alt="" />
        <div>
          <div class="psj-t">-<span class="pjs-sub">-</span></div>
          <p class="psj-p">B#池沉淀池泥位</p>
        </div>
      </div>
      <div class="pjs-item">
        <img src="../assets/psj/icon.png" alt="" />
        <div>
          <div class="psj-t">-<span class="pjs-sub">-</span></div>
          <p class="psj-p">C#池沉淀池泥位</p>
        </div>
      </div>
      <div class="pjs-item">
        <img src="../assets/psj/icon.png" alt="" />
        <div>
          <div class="psj-t">-<span class="pjs-sub">-</span></div>
          <p class="psj-p">A池余氯</p>
        </div>
      </div>
      <div class="pjs-item">
        <img src="../assets/psj/icon.png" alt="" />
        <div>
          <div class="psj-t">-<span class="pjs-sub">-</span></div>
          <p class="psj-p">B池余氯</p>
        </div>
      </div>
      <div class="pjs-item">
        <img src="../assets/psj/icon.png" alt="" />
        <div>
          <div class="psj-t">-<span class="pjs-sub">-</span></div>
          <p class="psj-p">C池余氯</p>
        </div>
      </div>
    </div>
    

    <div class="pjs-item" style="margin-top: 20px">
      <div class="psj-pic"></div>
      <div class="psj-pic"></div>
    </div>
  </div>
</ScalablePage>
</template>
<script setup lang="ts">
  import ScalablePage from "@/components/ScalablePage.vue"; // 引入组件自适应
import { ref, onMounted, reactive, toRefs } from "vue";
import { waterApi } from "@/utils/shuiwu/api";

const state = reactive({
  psj: {
    j1: 0,
    j2: 0,
    j3: 0,
    a: 0,
    b: 0,
    c: 0,
  },
});

let { psj } = toRefs(state);

onMounted(() => {
  getPsj(643);
});

function getPsj(id: number) {
  waterApi(id).then((res) => {
    let arr = res.rows as any;
    for (let i = 0; i < arr.length; i++) {
      if (arr[i].modelId == 4904) {
        state.psj.j1 = Number(arr[i].value);
      }
      if (arr[i].modelId == 4905) {
        state.psj.j2 = Number(arr[i].value);
      }
      if (arr[i].modelId == 4903) {
        state.psj.j3 = Number(arr[i].value);
      }
      if (arr[i].modelId == 4829) {
        state.psj.a = Number(arr[i].value);
      }
      if (arr[i].modelId == 4906) {
        state.psj.b = Number(arr[i].value);
      }
      if (arr[i].modelId == 4907) {
        state.psj.c = Number(arr[i].value);
      }
    }
  });
}
</script>
<style scoped></style>
